# encoding: utf-8
import os
import sys

SECRET_KEY = os.urandom(24)
DEBUG = True
# DB_USERNAME = 'root'
# DB_PASSWORD = 'root'
# DB_HOST = '127.0.0.1'
# DB_PORT = '3306'
# DB_NAME = 'demo'
#
# DB_URI = 'mysql+pymysql://%s:%s@%s:%s/%s?charset=utf8' % (DB_USERNAME, DB_PASSWORD, DB_HOST, DB_PORT, DB_NAME)
# SQLite URI compatible
WIN = sys.platform.startswith('win')
if WIN:
    prefix = 'sqlite:///'
else:
    prefix = 'sqlite:////'

SQLALCHEMY_DATABASE_URI =prefix + os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data.db')

print(SQLALCHEMY_DATABASE_URI)

SQLALCHEMY_TRACK_MODIFICATIONS = False






